/**
 * 【首页 home page】
 * Created by mosaic101 on 2016/8/2.
 */
define(function (require, exports, module) {
  'use strict';
  module.exports = function (app) {
    app.register.controller('homeCtrl', ['$scope', 'MHService','$location',function ($scope, MHService,$location) {
      MHService.cacheData(true, {key: 'map', value: 'true'});

      var url = MHService.URL.blogCommend;
      MHService.getReq({url: url}, function (result) {
        console.log(result);
        $scope.blogList = result;
      });
    }]);
  };
});
